/*
 *  AMediaFileDesc.h
 *  libavid
 *
 *  Created by Peter on 23.02.12.
 *  Copyright 2012 __MyCompanyName__. All rights reserved.
 *
 */

#ifndef A_MEDIA_FILE_DESC_H
#define A_MEDIA_FILE_DESC_H

#include "AObject.h"
#include "AMediaDesc.h"

/*
 * Encapsulates OMFi's 'MDFL'. Version: 3 (MC 5.5)
 */
class AMediaFileDesc : public AMediaDesc
{
	
public:
	
	A_DECLARE_CLASS( 'MDFL', AMediaFileDesc, AMediaDesc );
	
	virtual void readFromStream( AStream& str, const AObjDoc& objd );
	virtual void dump( std::ostream& str ) const;
	
	Int32 _edRateMantissa; // EdRate.mantissa : 25
	Int16 _edRateExpo10;   // EdRate.exp10    : 0
	Int32 _length;         // OMFI:MDFL:Length: 1
	Int16 _isOmfi;         // OMFI:MDFL:IsOMFI: 0
	Int32 _dataOffset;     // OMFI:MDFL:dataOffset: 393216 // Seems to be an offset in the media file, not bin/AObjDoc
};

#endif /*Inclusion Guard*/